package com.shoe.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ShoeLogisticExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ShoeLogisticExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLogisticIdIsNull() {
            addCriterion("logistic_id is null");
            return (Criteria) this;
        }

        public Criteria andLogisticIdIsNotNull() {
            addCriterion("logistic_id is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticIdEqualTo(Long value) {
            addCriterion("logistic_id =", value, "logisticId");
            return (Criteria) this;
        }

        public Criteria andLogisticIdNotEqualTo(Long value) {
            addCriterion("logistic_id <>", value, "logisticId");
            return (Criteria) this;
        }

        public Criteria andLogisticIdGreaterThan(Long value) {
            addCriterion("logistic_id >", value, "logisticId");
            return (Criteria) this;
        }

        public Criteria andLogisticIdGreaterThanOrEqualTo(Long value) {
            addCriterion("logistic_id >=", value, "logisticId");
            return (Criteria) this;
        }

        public Criteria andLogisticIdLessThan(Long value) {
            addCriterion("logistic_id <", value, "logisticId");
            return (Criteria) this;
        }

        public Criteria andLogisticIdLessThanOrEqualTo(Long value) {
            addCriterion("logistic_id <=", value, "logisticId");
            return (Criteria) this;
        }

        public Criteria andLogisticIdIn(List<Long> values) {
            addCriterion("logistic_id in", values, "logisticId");
            return (Criteria) this;
        }

        public Criteria andLogisticIdNotIn(List<Long> values) {
            addCriterion("logistic_id not in", values, "logisticId");
            return (Criteria) this;
        }

        public Criteria andLogisticIdBetween(Long value1, Long value2) {
            addCriterion("logistic_id between", value1, value2, "logisticId");
            return (Criteria) this;
        }

        public Criteria andLogisticIdNotBetween(Long value1, Long value2) {
            addCriterion("logistic_id not between", value1, value2, "logisticId");
            return (Criteria) this;
        }

        public Criteria andLogisticDateIsNull() {
            addCriterion("logistic_date is null");
            return (Criteria) this;
        }

        public Criteria andLogisticDateIsNotNull() {
            addCriterion("logistic_date is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticDateEqualTo(Date value) {
            addCriterion("logistic_date =", value, "logisticDate");
            return (Criteria) this;
        }

        public Criteria andLogisticDateNotEqualTo(Date value) {
            addCriterion("logistic_date <>", value, "logisticDate");
            return (Criteria) this;
        }

        public Criteria andLogisticDateGreaterThan(Date value) {
            addCriterion("logistic_date >", value, "logisticDate");
            return (Criteria) this;
        }

        public Criteria andLogisticDateGreaterThanOrEqualTo(Date value) {
            addCriterion("logistic_date >=", value, "logisticDate");
            return (Criteria) this;
        }

        public Criteria andLogisticDateLessThan(Date value) {
            addCriterion("logistic_date <", value, "logisticDate");
            return (Criteria) this;
        }

        public Criteria andLogisticDateLessThanOrEqualTo(Date value) {
            addCriterion("logistic_date <=", value, "logisticDate");
            return (Criteria) this;
        }

        public Criteria andLogisticDateIn(List<Date> values) {
            addCriterion("logistic_date in", values, "logisticDate");
            return (Criteria) this;
        }

        public Criteria andLogisticDateNotIn(List<Date> values) {
            addCriterion("logistic_date not in", values, "logisticDate");
            return (Criteria) this;
        }

        public Criteria andLogisticDateBetween(Date value1, Date value2) {
            addCriterion("logistic_date between", value1, value2, "logisticDate");
            return (Criteria) this;
        }

        public Criteria andLogisticDateNotBetween(Date value1, Date value2) {
            addCriterion("logistic_date not between", value1, value2, "logisticDate");
            return (Criteria) this;
        }

        public Criteria andLogisticOrderIdIsNull() {
            addCriterion("logistic_order_id is null");
            return (Criteria) this;
        }

        public Criteria andLogisticOrderIdIsNotNull() {
            addCriterion("logistic_order_id is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticOrderIdEqualTo(Long value) {
            addCriterion("logistic_order_id =", value, "logisticOrderId");
            return (Criteria) this;
        }

        public Criteria andLogisticOrderIdNotEqualTo(Long value) {
            addCriterion("logistic_order_id <>", value, "logisticOrderId");
            return (Criteria) this;
        }

        public Criteria andLogisticOrderIdGreaterThan(Long value) {
            addCriterion("logistic_order_id >", value, "logisticOrderId");
            return (Criteria) this;
        }

        public Criteria andLogisticOrderIdGreaterThanOrEqualTo(Long value) {
            addCriterion("logistic_order_id >=", value, "logisticOrderId");
            return (Criteria) this;
        }

        public Criteria andLogisticOrderIdLessThan(Long value) {
            addCriterion("logistic_order_id <", value, "logisticOrderId");
            return (Criteria) this;
        }

        public Criteria andLogisticOrderIdLessThanOrEqualTo(Long value) {
            addCriterion("logistic_order_id <=", value, "logisticOrderId");
            return (Criteria) this;
        }

        public Criteria andLogisticOrderIdIn(List<Long> values) {
            addCriterion("logistic_order_id in", values, "logisticOrderId");
            return (Criteria) this;
        }

        public Criteria andLogisticOrderIdNotIn(List<Long> values) {
            addCriterion("logistic_order_id not in", values, "logisticOrderId");
            return (Criteria) this;
        }

        public Criteria andLogisticOrderIdBetween(Long value1, Long value2) {
            addCriterion("logistic_order_id between", value1, value2, "logisticOrderId");
            return (Criteria) this;
        }

        public Criteria andLogisticOrderIdNotBetween(Long value1, Long value2) {
            addCriterion("logistic_order_id not between", value1, value2, "logisticOrderId");
            return (Criteria) this;
        }

        public Criteria andLogisticLogisticnumIsNull() {
            addCriterion("logistic_logisticnum is null");
            return (Criteria) this;
        }

        public Criteria andLogisticLogisticnumIsNotNull() {
            addCriterion("logistic_logisticnum is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticLogisticnumEqualTo(String value) {
            addCriterion("logistic_logisticnum =", value, "logisticLogisticnum");
            return (Criteria) this;
        }

        public Criteria andLogisticLogisticnumNotEqualTo(String value) {
            addCriterion("logistic_logisticnum <>", value, "logisticLogisticnum");
            return (Criteria) this;
        }

        public Criteria andLogisticLogisticnumGreaterThan(String value) {
            addCriterion("logistic_logisticnum >", value, "logisticLogisticnum");
            return (Criteria) this;
        }

        public Criteria andLogisticLogisticnumGreaterThanOrEqualTo(String value) {
            addCriterion("logistic_logisticnum >=", value, "logisticLogisticnum");
            return (Criteria) this;
        }

        public Criteria andLogisticLogisticnumLessThan(String value) {
            addCriterion("logistic_logisticnum <", value, "logisticLogisticnum");
            return (Criteria) this;
        }

        public Criteria andLogisticLogisticnumLessThanOrEqualTo(String value) {
            addCriterion("logistic_logisticnum <=", value, "logisticLogisticnum");
            return (Criteria) this;
        }

        public Criteria andLogisticLogisticnumLike(String value) {
            addCriterion("logistic_logisticnum like", value, "logisticLogisticnum");
            return (Criteria) this;
        }

        public Criteria andLogisticLogisticnumNotLike(String value) {
            addCriterion("logistic_logisticnum not like", value, "logisticLogisticnum");
            return (Criteria) this;
        }

        public Criteria andLogisticLogisticnumIn(List<String> values) {
            addCriterion("logistic_logisticnum in", values, "logisticLogisticnum");
            return (Criteria) this;
        }

        public Criteria andLogisticLogisticnumNotIn(List<String> values) {
            addCriterion("logistic_logisticnum not in", values, "logisticLogisticnum");
            return (Criteria) this;
        }

        public Criteria andLogisticLogisticnumBetween(String value1, String value2) {
            addCriterion("logistic_logisticnum between", value1, value2, "logisticLogisticnum");
            return (Criteria) this;
        }

        public Criteria andLogisticLogisticnumNotBetween(String value1, String value2) {
            addCriterion("logistic_logisticnum not between", value1, value2, "logisticLogisticnum");
            return (Criteria) this;
        }

        public Criteria andReserve1IsNull() {
            addCriterion("reserve1 is null");
            return (Criteria) this;
        }

        public Criteria andReserve1IsNotNull() {
            addCriterion("reserve1 is not null");
            return (Criteria) this;
        }

        public Criteria andReserve1EqualTo(String value) {
            addCriterion("reserve1 =", value, "reserve1");
            return (Criteria) this;
        }

        public Criteria andReserve1NotEqualTo(String value) {
            addCriterion("reserve1 <>", value, "reserve1");
            return (Criteria) this;
        }

        public Criteria andReserve1GreaterThan(String value) {
            addCriterion("reserve1 >", value, "reserve1");
            return (Criteria) this;
        }

        public Criteria andReserve1GreaterThanOrEqualTo(String value) {
            addCriterion("reserve1 >=", value, "reserve1");
            return (Criteria) this;
        }

        public Criteria andReserve1LessThan(String value) {
            addCriterion("reserve1 <", value, "reserve1");
            return (Criteria) this;
        }

        public Criteria andReserve1LessThanOrEqualTo(String value) {
            addCriterion("reserve1 <=", value, "reserve1");
            return (Criteria) this;
        }

        public Criteria andReserve1Like(String value) {
            addCriterion("reserve1 like", value, "reserve1");
            return (Criteria) this;
        }

        public Criteria andReserve1NotLike(String value) {
            addCriterion("reserve1 not like", value, "reserve1");
            return (Criteria) this;
        }

        public Criteria andReserve1In(List<String> values) {
            addCriterion("reserve1 in", values, "reserve1");
            return (Criteria) this;
        }

        public Criteria andReserve1NotIn(List<String> values) {
            addCriterion("reserve1 not in", values, "reserve1");
            return (Criteria) this;
        }

        public Criteria andReserve1Between(String value1, String value2) {
            addCriterion("reserve1 between", value1, value2, "reserve1");
            return (Criteria) this;
        }

        public Criteria andReserve1NotBetween(String value1, String value2) {
            addCriterion("reserve1 not between", value1, value2, "reserve1");
            return (Criteria) this;
        }

        public Criteria andReserve2IsNull() {
            addCriterion("reserve2 is null");
            return (Criteria) this;
        }

        public Criteria andReserve2IsNotNull() {
            addCriterion("reserve2 is not null");
            return (Criteria) this;
        }

        public Criteria andReserve2EqualTo(String value) {
            addCriterion("reserve2 =", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2NotEqualTo(String value) {
            addCriterion("reserve2 <>", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2GreaterThan(String value) {
            addCriterion("reserve2 >", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2GreaterThanOrEqualTo(String value) {
            addCriterion("reserve2 >=", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2LessThan(String value) {
            addCriterion("reserve2 <", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2LessThanOrEqualTo(String value) {
            addCriterion("reserve2 <=", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2Like(String value) {
            addCriterion("reserve2 like", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2NotLike(String value) {
            addCriterion("reserve2 not like", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2In(List<String> values) {
            addCriterion("reserve2 in", values, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2NotIn(List<String> values) {
            addCriterion("reserve2 not in", values, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2Between(String value1, String value2) {
            addCriterion("reserve2 between", value1, value2, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2NotBetween(String value1, String value2) {
            addCriterion("reserve2 not between", value1, value2, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve3IsNull() {
            addCriterion("reserve3 is null");
            return (Criteria) this;
        }

        public Criteria andReserve3IsNotNull() {
            addCriterion("reserve3 is not null");
            return (Criteria) this;
        }

        public Criteria andReserve3EqualTo(String value) {
            addCriterion("reserve3 =", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3NotEqualTo(String value) {
            addCriterion("reserve3 <>", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3GreaterThan(String value) {
            addCriterion("reserve3 >", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3GreaterThanOrEqualTo(String value) {
            addCriterion("reserve3 >=", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3LessThan(String value) {
            addCriterion("reserve3 <", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3LessThanOrEqualTo(String value) {
            addCriterion("reserve3 <=", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3Like(String value) {
            addCriterion("reserve3 like", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3NotLike(String value) {
            addCriterion("reserve3 not like", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3In(List<String> values) {
            addCriterion("reserve3 in", values, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3NotIn(List<String> values) {
            addCriterion("reserve3 not in", values, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3Between(String value1, String value2) {
            addCriterion("reserve3 between", value1, value2, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3NotBetween(String value1, String value2) {
            addCriterion("reserve3 not between", value1, value2, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve4IsNull() {
            addCriterion("reserve4 is null");
            return (Criteria) this;
        }

        public Criteria andReserve4IsNotNull() {
            addCriterion("reserve4 is not null");
            return (Criteria) this;
        }

        public Criteria andReserve4EqualTo(String value) {
            addCriterion("reserve4 =", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4NotEqualTo(String value) {
            addCriterion("reserve4 <>", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4GreaterThan(String value) {
            addCriterion("reserve4 >", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4GreaterThanOrEqualTo(String value) {
            addCriterion("reserve4 >=", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4LessThan(String value) {
            addCriterion("reserve4 <", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4LessThanOrEqualTo(String value) {
            addCriterion("reserve4 <=", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4Like(String value) {
            addCriterion("reserve4 like", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4NotLike(String value) {
            addCriterion("reserve4 not like", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4In(List<String> values) {
            addCriterion("reserve4 in", values, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4NotIn(List<String> values) {
            addCriterion("reserve4 not in", values, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4Between(String value1, String value2) {
            addCriterion("reserve4 between", value1, value2, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4NotBetween(String value1, String value2) {
            addCriterion("reserve4 not between", value1, value2, "reserve4");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}